﻿using System.ComponentModel.DataAnnotations;

namespace CommonManagement
{
    /// <summary>
    /// 评论新增数据传输对象
    /// </summary>
    public class CommentCreateDto
    {
        [Display(Name = "应用类型")]
        public string AppType { get; set; }

        [Display(Name = "新闻编号")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public int NewsId { get; set; }

        [Display(Name = "内容")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string Content { get; set; }
    }
}